package com.yunhoo.checkFlow.model;

import com.yunhoo.sys.util.common.LoginParam;
import java.util.Date;

public class FlowInfo {
    //db(pub_flowinfo)表字段:id number fid checker isCheck checkdate isConfirm content 

    private String id = "";//增量
    private String orgCode;//单位
    private String orgName;
    private Integer iyear;//年度
    private String number = "";//单据号
    private String fid = "";
    private String checker = "";//审批人
    private String checkerName = "";
    private String isCheck = "";//是否已审批
    private Date checkdate = new Date();//审批日期
    private String isConfirm = "";//是否通过
    private String content = "";//审批意见
    private String type = "";//1:预算 2：计划 3：执行
    private Integer checkLevel;
    private String isHistory = "";//是历史审批信息 1：是，0：否
    private String checkRole = "";//审批角色
    private String checkRoleName = "";//审批角色

    public FlowInfo() {
        orgCode = LoginParam.getOrg().getCode();
    }

    public FlowInfo(boolean initWithLoginParam) {
        if (initWithLoginParam) {
            this.orgCode = LoginParam.getOrg().getCode();
            this.orgName = LoginParam.getOrg().getName();
            this.iyear = LoginParam.getIyear();
        }
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Date getCheckdate() {
        return checkdate;
    }

    public void setCheckdate(Date checkdate) {
        this.checkdate = checkdate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(String isCheck) {
        this.isCheck = isCheck;
    }

    public String getIsConfirm() {
        return isConfirm;
    }

    public void setIsConfirm(String isConfirm) {
        this.isConfirm = isConfirm;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    public String getCheckerName() {
        return checkerName;
    }

    public void setCheckerName(String checkerName) {
        this.checkerName = checkerName;
    }

    public String getFid() {
        return fid;
    }

    public void setFid(String fid) {
        this.fid = fid;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getIyear() {
        return iyear;
    }

    public void setIyear(Integer iyear) {
        this.iyear = iyear;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getCheckLevel() {
        return checkLevel;
    }

    public void setCheckLevel(Integer checkLevel) {
        this.checkLevel = checkLevel;
    }

    public String getIsHistory() {
        return isHistory;
    }

    public void setIsHistory(String isHistory) {
        this.isHistory = isHistory;
    }

    public String getCheckRole() {
        return checkRole;
    }

    public void setCheckRole(String checkRole) {
        this.checkRole = checkRole;
    }

    public String getCheckRoleName() {
        return checkRoleName;
    }

    public void setCheckRoleName(String checkRoleName) {
        this.checkRoleName = checkRoleName;
    }
}
